﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using ACAPM.CommonClass;

public partial class SiteMaster : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!IsPostBack)
            {
                if (Request.Url.AbsolutePath.Contains("Default.aspx") || Request.Url.AbsolutePath.Contains("default.aspx"))
                {
                    string countDetails = string.Empty;
                    countDetails = StringHelper.UpdateSiteHitCount();
                    lblTotalCount.Text = countDetails.Split('|')[0];
                    lblSinceCount.Text = countDetails.Split('|')[1];
                    lblLastUpdated.Text = Convert.ToDateTime(countDetails.Split('|')[2]).ToLongDateString();
                    
                }
                else
                    divHitCount.Visible = false;    
            }
        }
        catch (Exception ex)
        {

        }
    }
}
